(()=>{"use strict";var e={p:""};e.p=document.getElementById("webpack-public-path").innerText+"Js/",(()=>{class e{constructor(){this.categories=["Other"]}getVariantNumber(){return 0}}class t{constructor(){this.categories=["One","Other"]}getVariantNumber(e){return 1===e?0:1}}class n{constructor(){this.categories=["One","Few","Many"]}getVariantNumber(e){const t=e%10,n=e%100;return[1,-1].includes(t)&&![11,-11].includes(n)?0:[2,3,4,-2,-3,-4].includes(t)&&![12,13,14,-12,-13,-14].includes(n)?1:2}}const o=/\$([a-zA-Z_][a-zA-Z0-9_]*)\$/g;const a=function(a,s,i,r){const c=function(o){switch(o.toLowerCase().slice(0,2)){case"ja":return new e;case"ru":return new n;default:return new t}}(i),l=function(e,t,n,o){let a=0;for(let e=0;e<o.length;e++){const s=t[o[e]];a+=n.getVariantNumber(s)*Math.pow(n.categories.length,o.length-e-1)}return e[a]}(a,s,c,r);return d=s,l.replace(o,((e,t)=>""+d[t]));var d};if(StackExchange=window.StackExchange=window.StackExchange||{},StackOverflow=window.StackOverflow=window.StackOverflow||{},globalThis.__tr=a,StackExchange=window.StackExchange=window.StackExchange||{},StackOverflow=window.StackOverflow=window.StackOverflow||{},window.StackExchange={},window.jQuery&&function(e){if(!e.browser){var t=function(e){e=e.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}}(navigator.userAgent),n={};t.browser&&(n[t.browser]=!0,n.version=t.version),n.chrome?n.webkit=!0:n.webkit&&(n.safari=!0),e.browser=n}}(jQuery),top!==self&&0!==window.location.pathname.toLowerCase().indexOf("/integrations/embedded"))throw top.location.replace(document.location),$((function(){$("body").empty().text(__tr(["For security reasons, framing is not allowed."], undefined, "en", [])),$("head").remove()})),new Error;var s,i,r,c,l,d;if(StackExchange.init=(s=function(e){if(!window.jQuery){if("complete"!==document.readyState)return void setTimeout((function(){s(e)}),1e3);var t=document.createElement("div");t.id="noscript-warning",t.innerHTML=__tr(["$siteName$ requires external JavaScript from another domain, which is blocked or failed to load. <a href=\"$cookieUrl$\">Retry using another source</a>."], {siteName: e,cookieUrl: "/home/get-jquery-fallback-cookie"}, "en", []),document.body.appendChild(t);var n=document.getElementById("noscript-css");if(!n)return;var o=document.createElement("div");o.innerHTML=n.innerText,document.head.appendChild(o.getElementsByTagName("style")[0])}},function(){function e(e){const t=`script[type="application/json"][data-role="module-args"][data-module-name="${e}"]`;return JSON.parse(document.querySelector(t).innerText)}const t=e("Shared/options.mod").options,n=e("Shared/settings.mod").settings;StackExchange.options=t,StackExchange.settings=n,t.serverTimeOffsetSec=t.serverTime-(new Date).getTime()/1e3,s(t.site.name),$.ajaxSetup({cache:!1}),StackExchange.init.createJqueryExtensions(),function(){var e=null;function t(){if(!e){(e=$.Deferred()).fail((function(){document.cookie="OptanonAlertBoxClosed="+(new Date).toISOString()+"; path=/; SameSite=Lax; domain="+StackExchange.options.site.cookieDomain+"; max-age=31536000",o("SDKLoadFailed"),StackExchange.helpers.showToast(__tr(["We couldn’t save your cookie preferences. Please adjust your browser settings or disable ad blocking. You can access your cookie settings at any time by clicking “Cookie Settings” in the footer."], undefined, "en", []),{type:"danger",transient:!0})})),window.OptanonWrapper=window.OptanonWrapper||function(){},new MutationObserver((function(e,t){var n=e[0];null===n.oldValue&&n.target.removeAttribute(n.attributeName)})).observe($("#onetrust-banner-sdk")[0],{attributes:!0,attributeOldValue:!0,attributeFilter:["style"]}),new MutationObserver((function(e,t){var n=e[0],o=n&&n.addedNodes.length&&n.addedNodes[0];o&&"style"===o.nodeName&&"onetrust-style"===o.id&&o.remove()})).observe(document.head,{childList:!0,attributes:!1,subtree:!1});var t=document.createElement("script");t.setAttribute("type","text/javascript"),t.setAttribute("charset","UTF-8"),t.setAttribute("data-domain-script",StackExchange.settings.legal.oneTrustConfigId),t.setAttribute("async",!0),document.body.appendChild(t),t.setAttribute("src","https://cdn.cookielaw.org/scripttemplates/otSDKStub.js"),t.onload=function(){var t=window.setInterval((function(){window.hasOwnProperty("OneTrust")&&(window.clearInterval(t),e.resolve(OneTrust))}),20)},t.onerror=e.reject}return e}var n=null;function o(e){$.cookie("OptanonAlertBoxClosed")||StackExchange.debug.log("reporting home but onetrust cookies are not set yet"),$.ajax({url:"/legal/consent-action",method:"POST",data:{type:e,fkey:StackExchange.options.user.fkey,bannerVersion:$(".js-consent-banner-version").data("consent-banner-version")}})}if($(document).on("click",".js-cookie-settings",(function(e){if(e.preventDefault(),0==$("#onetrust-banner-sdk").length)return!1;var o=$(e.target);if(!o.hasClass("is-loading")){var a=null===n;if((n=n||$.Deferred()).done((function(e){e.attr("style",""),Stacks.showModal(e.closest("[data-controller='s-modal']")[0])})),a){o.addClass("is-loading");var s=o.data("consent-popup-loader");$.ajax({type:"GET",url:"/legal/consent-popup",data:{loader:s,bannerVersion:$(".js-consent-banner-version").data("consent-banner-version")},dataType:"html"}).done((function(e){var o=$(e).elementNodesOnly();o.appendTo("#onetrust-banner-sdk"),t().done((function(){OneTrust.Init(),OneTrust.FetchAndDownloadPC(),o.attr("id","onetrust-pc-sdk"),window.setTimeout(n.resolve.bind(null,o),1)})).fail((function(e){"banner"===s&&$(".js-consent-banner").fadeOut(100),n.reject(e)}))})).fail((function(e){n.reject(e)})).always((function(){o.removeClass("is-loading")}))}}})),$(document).on("click",".js-accept-cookies",(function(e){t().done((function(){n&&n.done((function(e){e.find(".js-editor-toggle-state").attr("checked","checked")})),OneTrust.AllowAll(),o("AcceptAll"+($(e.target).closest(".js-consent-banner").length?"FromBanner":"FromPopup"))}))})),$(document).on("click",".js-consent-banner-hide",(function(e){$(".js-consent-banner").fadeOut(100)})),$(document).on("click",".js-consent-save",(function(){o("SavePreferences")})),StackExchange.settings.legal.oneTrustCrossDomainConsentIFrame){var a=null,s=function(e,t){var n=new Date;n.setTime(n.getTime()+31536e6),document.cookie=e+"="+t+"; path=/; SameSite=Lax; domain="+StackExchange.options.site.cookieDomain},i=function(e){var t=e+"=",n=document.cookie.split("; "),o=n.findIndex((function(e){return e.startsWith(t)}));return o>=0?n[o].substr(t.length):""},r=new URL(StackExchange.settings.legal.oneTrustCrossDomainConsentIFrame).origin;window.addEventListener("message",(function(e){e&&e.data&&"OneTrustCookies"===e.data.name&&e.origin===r&&(e.data.OptanonConsent&&s("OptanonConsent",e.data.OptanonConsent),e.data.OptanonAlertBoxClosed&&(s("OptanonAlertBoxClosed",e.data.OptanonAlertBoxClosed),$(".js-consent-banner").fadeOut(0)))})),$("body").ready((function(){(a=document.createElement("iframe")).src=StackExchange.settings.legal.oneTrustCrossDomainConsentIFrame,a.name="OTcrossDomain",a.referrerPolicy="origin",a.className="d-none",document.body.appendChild(a)})),window.OptanonWrapper=function(){var e={OptanonConsent:i("OptanonConsent"),OptanonAlertBoxClosed:i("OptanonAlertBoxClosed")};a.contentWindow.postMessage(e,r)}}}(),t.enableLogging=(t.user.isEmployee||t.isDebugBuild)&&"undefined"!=typeof console&&void 0!==console.log,$((function(){(function(){try{return window.location.host.endsWith(".kinokrad-co.com")||window.location.host.endsWith(".cryptoo.online")}catch(e){return!1}})()&&(window.location.href="https://stackexchange.com/about/malware?host="+window.location.hostname),function(){var e=function(t,n){if(t){var o=$(t).filter(":not(.popup-stack-hidden)");if(!o.length)return;o.each((function(e,t){var n=$(t),a=n.data("_popup"),s=n.data("_lightbox");a&&(o=o.add(a)),s&&(o=o.add(s))})),o=(o=$($.unique(o.get()))).not(".popup-closing").addClass("popup-closing");var a={closeTrigger:n},s=$.Event("popupClosing",a);if(o.trigger(s),s.isDefaultPrevented())return void o.removeClass("popup-closing");(o=o.not(".popup-closed").addClass("popup-closed")).filter(":not(.esc-hide)").fadeOutAndRemove(),o.filter(".esc-hide").fadeOut("fast",(function(){o.removeClass("popup-closing").removeClass("popup-closed")})),o.trigger("popupClose",a)}else StackExchange.topbar&&StackExchange.topbar.hideAll(),e(".lightbox:not(.no-auto-close), .message-dismissable, .popup:not(.no-auto-close), .s-modal.js-stacks-managed-popup:not(.no-auto-close), .esc-remove, .esc-hide","esc")};$(document).keyup((function(t){27===t.which&&e()})),$("body").mousedown((function(t){var n=$(t.target);if(!n.closest(".ac_results, .popup, .wmd-prompt-dialog, .message, .modal, .body-click-hide").length){var o="click outside";if(1===t.which)if(n.is(".wmd-prompt-background"))e(".wmd-prompt-dialog, .wmd-prompt-background, .popup#image-upload",o);else{if(!n.closest(".popup, .modal, .s-modal--dialog, .s-toast").length){var a=".popup:not(.no-auto-close), .lightbox:not(.no-auto-close), .modal:not(.no-auto-close), .s-modal.js-stacks-managed-popup:not(.no-auto-close)",s=n.closest(".s-modal.js-stacks-managed-popup");s.length?e(s.filter(a).add(s.find(a)),o):e(a,o)}n.closest(".message-config").length||e(".message-config.message-dismissable",o),n.closest(".body-click-hide").length||e(".esc-hide")}}})),$(document).bind("closePopups",(function(t){e(t.selectorToClose,t.closeTrigger)}));var t=[];$(document).on("popupLoad",(function(e){var n=e.popup;if(e.lightbox)for(var o=0;o<t.length;o++)t[o].css("display","none").addClass("popup-stack-hidden");var a=n.data("_lightbox");a&&(n=n.add(a)),n.data("popup-stack-index",t.length),t.push(n)})).on("popupClosing",(function(n){if(!n.isDefaultPrevented()){var o,a=$(n.target).data("popup-stack-index");if(a&&!isNaN(a)){for((a<0||a>=t.length)&&StackExchange.debug.log("popupStack index out of bounds");t.length>a;)(o=t.pop()).data("popup-stack-index",null),e(o,n.closeTrigger);for(;a>0&&((o=t[--a]).removeClass("popup-stack-hidden").css("display","block"),!o.filter(".lightbox").length););}}}))}(),function(){var e="se:fkey";function t(e){StackExchange.options.site.prefixFkey&&StackExchange.options.site.routePrefix&&(e=StackExchange.options.site.routePrefix+"/"+e),StackExchange.options.user.fkey!==e&&(StackExchange.options.user.fkey=e,$("input[name=fkey]").val(e))}$(window).on("storage",(function(n){(n=n.originalEvent).key===e&&n.newValue&&t(n.newValue.split(/,/)[0])}));try{var n=StackExchange.options.user.fkey,o=function(){var t=localStorage.getItem(e);if(!t)return{time:0};var n=t.split(/,/);return{fkey:n[0],time:parseInt(n[1],10)}}();o.fkey!==n&&(StackExchange.options.serverTime>o.time?function(t,n){try{var o=t.lastIndexOf("/");o>=0&&(t=t.substr(o+1)),localStorage.setItem(e,t+","+n)}catch(e){}}(n,StackExchange.options.serverTime):t(o.fkey))}catch(e){}}(),$(document).on("click",".convert-to-post",(function(e){e.preventDefault();var t=$(this).attr("data-confirm");t&&!confirm(t)||$("<form method='post'/>").attr("action",$(this).attr("href")).appendTo("body").append($("<input type='hidden' name='fkey' />").attr("value",$(this).attr("data-fkey"))).submit()})),StackExchange.using(StackExchange.options.user.isAnonymous?"anonymous":"loggedIn",(function(){Svg.init(t.svgIconPath,t.svgIconHash),StackExchange.initialized.resolve()}),2);var e=StackExchange.settings.site.styleCodeAdditionalLang;e&&StackExchange.ifUsing("highlightjs",(function(){return StackExchange.loadJsFile("third-party/highlight.js/additional-langs/"+e)})),StackExchange.scrollPadding.ensureInitialized(),StackExchange.ready((function(){t.user.messages&&StackExchange.notify.showMessages(t.user.messages),n.site.enableUserHovercards&&StackExchange.usermenu.init(),t.site.universalAuthDisabled||UniversalAuth.performAuth(),StackExchange.tagPreferences?StackExchange.tagPreferences.init():StackExchange.tagmenu.init(),t.timingsGuid&&$(window).on("load",(function(){setTimeout(StackExchange.processTimings,50)})),$("*[data-tracker]").track(),StackExchange.bindShowMoreHotNetworkQuestions();var e=function(){var e=!1;$("body > script:not([src])").each((function(){if(this.textContent.length>4e4&&/currentSelectable/.test(this.textContent))return e=!0,!1})),(e||t.user.keyboardShortcuts)&&StackExchange.using("keyboardShortcuts",(function(){StackExchange.keyboardShortcuts.init(e)}))};document.readyState&&"complete"!==document.readyState?$(window).on("load",(function(){setTimeout(e,10)})):setTimeout(e,10),StackExchange.showFlashMessageIfAny()}))}))}),StackExchange.debug={log:function(e){},init:function(){this.log=function(e){$((function(){var t=$("#debug-messages");t.length||(t=$("<div id='debug-messages' style='text-align:left;position:fixed;top:50px;left:50px;z-index:1000;background:white;border:2px solid black;width:300px;padding:10px;' />").append($("<span style='cursor:pointer;color:#999'>(close debug messages)</span>").click((function(){$("#debug-messages").remove()}))).appendTo("body")),$("<div style='margin-top:10px' />").text(e).appendTo(t)}))}}},StackExchange.initialized=$.Deferred(),StackExchange.gaInitialized=$.Deferred(),StackExchange.ready=function(e){StackExchange.initialized.done(e)},StackExchange.gaReady=function(e){StackExchange.gaInitialized.done(e)},window.serq)for(var u=0;u<window.serq.length;u++)StackExchange.ready(window.serq[u]);!function(){var e,t={adops:"adops.js",anonymous:"full-anon.js",ask:"ask.js",autocomplete:"tageditor.js",beginEditEvent:"begin-edit-event.js","StackExchange.misc.copy":"copy-transpiled.js",editor:"wmd.js",eventCharts:"events.js",exploreQuestions:"explore-qlist.js",externalEditor:["full-anon.js","full.js"],gps:["full-anon.js","full.js"],highlightjs:"highlightjs-loader.js",inlineEditing:"full.js",inlineTagEditing:"inline-tag-editing.js",keyboardShortcuts:"keyboard-shortcuts.js",loggedIn:"full.js",mathjaxEditing:"mathjax-editing.js",mathjaxEditingBeta:"mathjax-editing.beta.js",markdownit:"markdown-it-loader.js",mockups:["full-anon.js","full.js"],moderator:"moderator.js","StackOverflow.Scripts.PostCollections":"postCollections-transpiled.js",postValidation:"post-validation.js",review2:"review-v2-transpiled.js",revisions:"revisions.js",schematics:["full-anon.js","full.js"],snippets:["full-anon.js","full.js"],snippetsJsCodeMirror:"snippet-javascript-codemirror.js",stacksEditor:"stacks-editor.js",tagAutocomplete:"tageditor.js",tagEditor:"tageditornew.js",tagSuggestions:"tagsuggestions.js",translation:"full.js","StackExchange.misc.unlimited":"unlimited-transpiled.js",virtualKeyboard:"virtual-keyboard.js"},n={},o={},a={},s={},i=function(e,t){return function(n){var o=e[n];return o||(o=e[n]=t(n)),o}},r=function(){if(!e){var t=$("script[src]").filter((function(){return/stub.*\.js/.test($(this).attr("src"))})).first();0===t.length?(StackExchange.debug.log("couldn't figure out location of stub.js"),e="/Content/Js/"):e=t.attr("src").replace(/\/stub.*\.js.*$/,"/")}return e},c=function(e){var t=s["js/"+e];return t?"?v="+t:(StackExchange.debug.log("no cache breaker for "+e),"")},l=function(e){return e&&StackExchange.options.locale&&-1===e.indexOf("third-party")&&(e=e.replace(/^(.*)(\.js)(\?.*)?$/,"$1."+StackExchange.options.locale+"$2$3")),e},d=function(e,t){var n=$.Deferred(),o=document.createElement("script");return o.async="async",o.src=t?e:l(e),o.onload=o.onreadystatechange=function(e,t){o.readyState&&!/loaded|complete/.test(o.readyState)||(t?n.reject():n.resolve())},o.onerror=function(){n.reject()},$("head")[0].appendChild(o),n.promise()},u=i(n,(function(e){return d(r()+e+c(l(e)))})),p=i({},(function(e){function a(){if(e){if("string"!=typeof e||e.indexOf(".")<0)return StackExchange[e];for(var t=window,n=e.split("."),o=0;o<n.length&&(t=t[n[o]]);o++);return t}}var s=$.Deferred(),i=a(),r=3;return i?s.resolve():function(e){var o=t[e];if(!o)return $.Deferred().reject().promise();if(o instanceof Array){if(0===o.length)return $.Deferred().reject().promise();for(var a=0;a<o.length;a++){var s=o[a],i=n[s];if(i)return i}return u(o[0])}return u(o)}(e).done((function t(){if(!(i=a()))return r>0?(r--,StackExchange.debug.log("retrying "+e),void setTimeout(t,20)):(StackExchange.debug.log("object StackExchange."+e+" not available although file was loaded"),void s.reject());(function(e){var t,n,a=o[e],s=$.Deferred(),i=$.when(s);if(a)for(t=0;t<a.length;t++)(n=a[t].call(null))&&$.isFunction(n.promise)&&(i=$.when(i,n));return s.resolve(),i})(e).done((function(){s.resolve()}))})).fail(s.reject),s.promise()})),f=$.Deferred(),g=function(e,n,o){if(0!==(o=o||0)||"resolved"===f.state()){if(2===o)for(var a in t)if(t.hasOwnProperty(a)){var s=t[a];if(s instanceof Array){for(var i=[],r=0;r<s.length;r++)i.push(s[r]);t[a]=i}else t[a]=s}var c=p(e);return 0===o?c=$.when(c,StackExchange.initialized):2===o&&f.resolve(),c.done((function(){n()})).fail((function(){StackExchange.debug.log("failed to provide object "+e)})),c}f.done((function(){g(e,n)}))};g.setCacheBreakers=function(e){for(var t in e)e.hasOwnProperty(t)&&(s[t]=e[t])};StackExchange.getCacheBreaker=c,StackExchange.cacheBreakers=s,StackExchange.using=g,StackExchange.ifUsing=function(e,t,n){if(void 0!==n){if(a["u_"+n])return;a["u_"+n]=!0}if(StackExchange[e])t();else{var s=o[e];s||(s=o[e]=[]),s.push(t)}},StackExchange.loadJsFile=function(e,t){return d(r()+e,t)}}(),String.prototype.formatUnicorn=function(){var e=this.toString();if(!arguments.length)return e;var t=typeof arguments[0],n="string"===t||"number"===t?Array.prototype.slice.call(arguments):arguments[0];for(var o in n)e=e.replace(new RegExp("\\{"+o+"\\}","gi"),n[o]);return e},String.prototype.truncate=function(e,t){var n=this.toString();return e&&n.length>e&&(n=n.substr(0,e)+t),n},String.prototype.splitOnLast=function(e){var t=this.lastIndexOf(e);return t<0?[this]:[this.substring(0,t),this.substring(t)]},String.prototype.contains=function(e){return this.indexOf(e)>-1},String.prototype.endsWith||(String.prototype.endsWith=function(e){return-1!==this.indexOf(e,this.length-e.length)}),StackExchange.init.createJqueryExtensions=function(){var e=StackExchange.helpers;$.extend($.expr[":"],{working:function(e){var t=$(e).data("working");return void 0!==t&&t},data:function(e,t,n){var o=n[3],a=$(e).data(o);switch(typeof a){case"undefined":return!1;case"boolean":return a;case"object":return null!==a}return!0},containsCI:function(e,t,n){return jQuery(e).text().toUpperCase().indexOf(n[3].toUpperCase())>=0},viewport:function(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}}),$.fn.extend({working:function(e){return this.each((function(){$(this).data("working",e)}))},track:function(){return this.each((function(){var e=$(this),t=e.is("a[href]")?e:e.find("a[href]"),n=e.data("tracker");t.each((function(){var e=this.href.splitOnLast("#"),t=e[0];t+=(t.contains("?")?"&":"?")+n+(e[1]||""),this.href=t}))}))},fadeOutAndRemove:function(){return this.each((function(){var e=$(this);e.is(".js-fades-with-aria-hidden")?(e.attr("aria-hidden","true"),e.on("transitionend",(function(t){"opacity"===t.originalEvent.propertyName&&e.trigger("removing").remove()}))):e.fadeOut("fast",(function(){e.trigger("removing").remove()}))}))},charCounter:function(t){return this.each((function(){var n=t.target?$(t.target):$(this).parents("form").find("span.text-counter"),o=this;$(this).bind("blur focus keyup paste charCounterUpdate",e.DelayedReaction((function(){var e=t.min,a=t.max,s=t.startAt,i=(t.setIsValid||function(){}).bind(o),r=t.useJQueryVal,c=0,l=o.tagName&&"DIV"===o.tagName?o.textContent:r?$(o).val():o.value;l&&(c=t.ignoreWhitespace?l.replace(/\s+/g," ").replace(/^\s+/,"").replace(/\s+$/,"").length:l.replace(/\r\n/g,"\n").replace(/\n/g,"\r\n").length);var d=c>a?"fc-red-400":c>.8*a?"supernova":c>.6*a?"hot":c>.4*a?"warm":"cool",u="";if(0===c)0===e?(u=__tr(["Enter up to $max$ characters","Enter up to $max$ characters"], {max: a}, "en", ["max"]),i(!0)):(u=__tr(["Enter at least $min$ character","Enter at least $min$ characters"], {min: e}, "en", ["min"]),i(!1));else if(c<e)u=__tr(["$count$ more to go...","$count$ more to go..."], {count: e - c}, "en", ["count"]),i(!1);else{var p=a-c;u=p>=0?__tr(["$count$ character left","$count$ characters left"], {count: p}, "en", ["count"]):__tr(["Too long by $count$ character","Too long by $count$ characters"], {count: Math.abs(p)}, "en", ["count"]),i(c<=a)}s&&c<s&&(u=""),n.text(u),n.hasClass(d)||n.removeClass("fc-red-400 supernova hot warm cool").addClass(d)}),100,{sliding:!0}).trigger)}))},selectRange:function(e,t){return this.each((function(){if(this.setSelectionRange)this.focus(),this.setSelectionRange(e,t);else if(this.createTextRange){var n=this.createTextRange();n.collapse(!0),n.moveEnd("character",t),n.moveStart("character",e),n.select()}}))},addSpinner:function(t){return this.each((function(){e.addSpinner(this,t)}))},addSpinnerAfter:function(t){return this.each((function(){$(this).after(e.getSpinnerImg(t))}))},addSpinnerBefore:function(t){return this.each((function(){$(this).before(e.getSpinnerImg(t))}))},addStacksSpinner:function(t,n){return this.each((function(){e.addStacksSpinner(this,t,n)}))},setTooltipText:function(e,t){return this.each((function(){Stacks.setTooltipText(this,e,t)}))},setTooltipHtml:function(e,t){return this.each((function(){Stacks.setTooltipHtml(this,e,t)}))},removeSpinner:function(){return this.each((function(){$(this).find("img.ajax-loader, .s-spinner").remove()}))},showErrorMessage:function(t,n){return this.each((function(){e.showErrorMessage(this,t,n)}))},showErrorPopup:function(t,n){return this.each((function(){e.showErrorMessage(this,t,n)}))},showInfoMessage:function(t,n){return this.each((function(){e.showInfoMessage(this,t,n)}))},center:function(e){e=e||{};var t=this.parent();"static"===t.css("position")&&(t=t.offsetParent());var n=t.offset(),o=$(window),a=e.top||Math.max((o.height()-this.outerHeight())/2+o.scrollTop()-StackExchange.scrollPadding.getPaddingTop()-n.top+(e.dy||0),65);this.css("position","absolute"),this.css("top",a+"px");var s=Math.max(20,(o.width()-this.outerWidth())/2+o.scrollLeft()-n.left);this.css("left",s+"px");var i="calc(50% - "+this.outerWidth()/2+"px)";return this.css("left",i),this.css("left","-webkit-"+i),this},enable:function(){return 0===arguments.length||arguments[0]?this.removeAttr("disabled").css("cursor","pointer").removeClass("disabled-button"):this.attr("disabled","disabled").css("cursor","default").addClass("disabled-button"),this},disable:function(){return this.enable(!1)},checked:function(e){return e?this.attr("checked","checked"):this.removeAttr("checked"),this},loadPopup:function(t){var n=$.Deferred(),o=this,a=t.target||o.parent();(e.hideToasts(),t.html||t.noSpinner)||(t.addSpinnerFn||$.fn.addSpinnerAfter).call(o,{padding:"0 3px"});t.loaded&&n.done(t.loaded);var s=function(s){var i,r=$(s).elementNodesOnly();r.find(".popup-actions-cancel, .popup-close a, .modal-close, .js-popup-close").click((function(){StackExchange.helpers.closePopups(i?r.add(i):r)})),r.find("input:radio[disabled=disabled] + label.action-label").addClass("action-disabled"),t.hideDescriptions&&r.addClass("_hidden-descriptions").find("ul.action-list > li:not(.action-selected) .action-desc").hide();var c=r.find("input:radio:not(.action-subform input)");c.closest("li").bind("hide-action",(function(){var e=$(this),n=".action-subform"+(t.hideDescriptions?", .action-desc":"");e.removeClass("action-selected").find(n).slideUp("fast")})).bind("show-action",(function(e){var n=$(this);n.hasClass("action-selected")?e.stopImmediatePropagation():(n.siblings(".action-selected").trigger("hide-action"),n.addClass("action-selected").find(".action-subform").slideDown("fast",(function(){if(t.subformShow&&t.subformShow($(this)),t.subformFocusInput){var e=$(this).find("input[type=text], textarea").not(".actual-edit-overlay").eq(0);e.length&&e.focus()}})),t.hideDescriptions&&n.find(".action-desc").slideDown("fast"),t.actionSelected&&t.actionSelected(n),r.find(".popup-submit, .js-popup-submit").enable())})).filter(".show-action-onload").each((function(){var e=$(this);n.done((function(){e.find("input[type=radio]").click()}))})),c.on("click",(function(){$(this).closest("li").trigger("show-action")})),(t.insert||function(e){t.prepend?e.prependTo(a):e.appendTo(a)})(r),t.lightbox&&(i=StackExchange.helpers.addLightbox().data("_popup",r),r.css("z-index",+i.css("z-index")+1).data("_lightbox",i)),n.resolveWith(o,[r,i]),a.trigger($.Event("popupLoad",{popup:r,lightbox:i}));var l=function(){};if(t.subformShow){var d=r.find("li.action-selected .action-subform");d.length>0&&(l=function(){d.each((function(){t.subformShow($(this))}))})}!!t.dontShow||(r.center().fadeIn("fast",l),i&&i.fadeIn("fast")),e.bindMovablePopups()};return t.html?s(t.html):$.ajax({type:"GET",url:t.url,dataType:"html",data:t.data,success:s,error:function(o,s,i){var r=o.responseText&&o.responseText.length<200?o.responseText:t.defaultErrorMessage||__tr(["Unable to load popup - please try again"], undefined, "en", []);e.showToast(r,{type:"warning",transient:409===o.status,$source:a}),n.reject(r)},complete:e.removeSpinner}),n.promise()},asyncLoad:function(e){return e=$.extend({callback:null,cache:{}},e),this.each((function(){var t=".js-async-load",n=$(this),o=n.find(t);n.is(t)&&(o=o.add(n)),o.each((function(){var t=$(this),n=t.data("load-url")||"";if(n&&!t.is(":working")){t.working(!0).addSpinner();var o=function(n){t.html(n).removeClass("js-async-load").mathjax();var o=t.data("after-load")||"";if(o||e.callback){for(var a,s=o?o.split("."):[],i=0;i<s.length;i++)a=(a||window)[s[i]];"function"==typeof(a=a||e.callback)&&a(t)}},a=e.cache[n];a?window.setTimeout((function(){o(a)}),0):$.ajax({type:"GET",url:n,dataType:"html"}).done((function(t){e.cache[n]=t,o(t)})).fail((function(){t.removeSpinner().showErrorMessage(__tr(["An error has occurred; please try again"], undefined, "en", []))}))}}))}))},mathjax:function(){return this.each((function(){"undefined"!=typeof MathJax&&MathJax.Hub.Typeset(this)}))},elementNodesOnly:function(){return this.filter((function(){return 1===this.nodeType}))},scrollIntoView:function(e){if(0===this.length)return this;var t=$.extend({},{duration:100,complete:null},e),n=this.first();return"contents"===n.css("display")&&(n=n.find(">*:first")),n.is(":viewport")?"function"==typeof t.complete&&t.complete():$("html, body").animate({scrollTop:n.offset().top},t),this},outerHTML:function(){return $("<div>").append(this.eq(0).clone()).html()},unadornedButtonClick:function(e,t){var n=$.extend({},{namespace:"button",selector:null},t);return this.on("keypress."+n.namespace,n.selector,(function(t){32!==t.keyCode&&13!==t.keyCode||(e.apply(this,arguments),t.preventDefault())})).on("click."+n.namespace,n.selector,(function(t){this.blur(),e.apply(this,arguments),t.preventDefault()}))},addAtEnd:function(e){var t=this.get();return t.push.apply(t,$(e).get()),this.pushStack(t)},dispatchEvent:function(e,t){var n,o=this.get(0);try{n=new CustomEvent(e,{cancelable:!0,bubbles:!0,detail:t||{}})}catch(o){(n=document.createEvent("CustomEvent")).initCustomEvent(e,!0,!0,t||{})}return o&&o.dispatchEvent(n),n}})},StackExchange.helpers=function(){function e(e,t){$(e).find("input[type='submit'], button[type='submit']").prop("disabled",t)}var t={addLightbox:function(){return $('<div class="lightbox"/>').appendTo($("body")).css("height",$(document).height())},bindMovablePopups:function(){$("div.popup:not([data-controller~=se-draggable])").attr("data-controller","se-draggable").find(".handle").attr("data-se-draggable-target","handle")},bindOnHashChange_HighlightDestination:function(e,t){var n="hashchange.highlightDestination";$(window).off(n).on(n,(function(){var n=window.location.href;if(!(n.indexOf("#")<0)){var o=decodeURI(n).match(/#(\d+|comment(\d+)_(\d+))/i);o&&(o[2]&&e?e(o[2],o[3]):t&&t(o[1]))}})).trigger(n)},onClickDraftSave:function(e){return $(e).click((function(e){if(StackExchange.cardiologist){e.preventDefault();var t=this.href;return StackExchange.cardiologist.ensureDraftSaved((function(){window.onbeforeunload=null,window.location.href=t})),!1}})),!0},showMessage:function(e,n,o){if((e=$(e)).length){var a=$.extend({},{messageElement:null,position:"inside",dismissable:!0,type:"error",closeOthers:!0,shown:function(){},relativeToBody:!1,lightbox:!1,stopBodyScroll:!1,fixedTo$elem:!1,slideDown:!1},o);a.closeOthers&&$(".message, .js-stacks-managed-popup").fadeOutAndRemove();var s=$('<div class="message"><div class="message-inner"><div class="message-text"></div></div></div>'),i=s.find(".message-inner"),r=s.find(".message-text");if(s.addClass("message-"+a.type),a.cssClass&&s.addClass(a.cssClass),a.messageElement?r.append(a.messageElement):r.html(n),a.dismissable&&(s.addClass("message-dismissable"),r.css("padding-right","48px"),i.prepend($("<div />",{title:a.closeTitle||__tr(["close this message (or hit Esc)"], undefined, "en", []),class:"message-close",text:"×"})),s.click((function(e){var t=$(e.target);(!0===a.dismissable&&!t.is("a")||"x-or-esc"===a.dismissable&&t.is(".message-close, .message-close-inner"))&&(a.dismissing&&a.dismissing(),s.fadeOutAndRemove(),a.lightbox&&$(".lightbox").fadeOutAndRemove())}))),a.dismissing&&s.on("popupClose",(function(e,t){"esc"===t.closeTrigger&&a.dismissing()})),a.css&&s.css(a.css),"inside"===a.position||"inline"===a.position||"toast"===a.position||a.tip||(a.tip=a.position.my),a.tip&&i.addClass("message-tip message-tip-"+a.tip.replace(" ","-")),"inline"===a.position)e.append(s);else if("inside"===a.position)s.css("position","absolute"),e.append(s);else if("toast"===a.position)s.addClass("toast").appendTo(e);else{s.css("position","absolute"),(a.relativeToBody?$("body"):e.offsetParent()).append(s);var c,l,d=a.relativeToBody?e.offset():e.position(),u=e.outerWidth(!0),p=e.outerHeight(!0),f=s.outerWidth(),g=s.outerHeight(),h=(u-e.outerWidth(!1))/2;switch(a.position.at){case"top left":c={top:0,left:0};break;case"top center":c={top:0,left:u/2+h};break;case"top right":case"right top":c={top:0,left:u};break;case"right center":c={top:p/2,left:u};break;case"right bottom":case"bottom right":c={top:p,left:u};break;case"bottom center":c={top:p,left:u/2+h};break;case"bottom left":case"left bottom":c={top:p,left:0};break;case"left center":c={top:p/2,left:0};break;case"left top":c={top:0,left:0}}switch(a.position.my){case"left top":l={top:0,left:-9};break;case"top left":l={top:-9,left:0};break;case"top center":l={top:-9,left:f/2+9};break;case"top right":l={top:-9,left:f};break;case"right top":l={top:0,left:f+9};break;case"right bottom":l={top:g,left:f+9};break;case"bottom right":l={top:g+9,left:f};break;case"bottom center":l={top:g+9,left:f/2+9};break;case"bottom left":l={top:g+9,left:0};break;case"left bottom":l={top:g,left:-9}}var m={left:d.left+c.left-l.left,top:d.top+c.top-l.top};if(s.data("initialTop",m.top),s.animateOffsetTop=function(e){s.animate({top:s.data("initialTop")+e})},a.position.offsetTop&&(m.top+=a.position.offsetTop),a.position.offsetLeft&&(m.left+=a.position.offsetLeft),s.css({top:m.top,left:m.left}),a.fixedTo$elem){var v=null,b=e.offset(),x=$(window).width(),k="resize.message scroll.message";$(window).on(k,(function(){v=v||s.offset();var t=e.offset().top-b.top,n=($(window).width()-x)/2;s.offset({top:v.top+t,left:v.left+n})})),s.on("removing",(function(){$(window).off(k)}))}}if(a.showing&&a.showing(),a.lightbox){var w=$("body"),y=$('<div class="lightbox"/>').appendTo(w).css("height",$(document).height()).fadeIn();a.stopBodyScroll&&w.addClass("stop-scrolling"),s.on("removing",(function(){y.fadeOutAndRemove(),a.stopBodyScroll&&w.removeClass("stop-scrolling")}))}if(a.slideDown){var S=e.css("margin-top"),E=e.css("margin-bottom");e.css("margin-top",0),e.css("margin-bottom",0),s.css("height",0),e.css("display","block"),s.css("display","block"),e.animate({"margin-top":S,"margin-bottom":E},500),s.animate({height:s.get(0).scrollHeight},500)}else s.fadeIn(a.shown);if(a.transient){var T=o.transientTimeout||t.suggestedTransientTimeout(n,"toast"===o.position);setTimeout((function(){s.fadeOutAndRemove()}),T)}return a.removing&&s.on("removing",a.removing),StackExchange.options.enableLogging&&s.data("settings",a),s}},suggestedTransientTimeout:function(e,t){var n=40;return"jp"===StackExchange.options.locale?n=80:t&&(n=55),Math.max(4e3,e.length*n)},showErrorMessage:function(e,t,n){var o=$.extend({},{position:"inside",type:"error"},n);return this.showMessage(e,t,o)},showErrorPopup:function(e,t,n){return this.showErrorMessage(e,t,n)},showInfoMessage:function(e,t,n){var o=$.extend({},{position:"inside",transient:!0,type:"info"},n);return this.showMessage(e,t,o)},showSuccessMessage:function(e,t,n){var o=$.extend({},{type:"success",position:"toast",transient:!0,transientTimeout:1e4},n);return this.showMessage(e,t,o)},showBannerMessage:function(e,t){var n=$(".banner-message-container").last();0===n.length&&(n=$("<div/>").addClass("top-banner-message-container").css("display","none").insertAfter("#header"));var o={type:t,position:"inline",cssClass:"banner-message",slideDown:!0};return this.showMessage(n,e,o)},showStacksNotice:function(e,t,n){var o=$.extend({},{transient:!1,transientTimeout:2e4},n),a=o.target||$(".js-notice-message-container").last();0===a.length&&(a=$("<div/>").addClass("top-notice-message-container").insertAfter($("header").first()));var s=$('<aside class="s-notice py8" role="status" aria-hidden="false"><div class="d-flex gs16 gsx ai-center jc-space-between" aria-describedby="notice-message"><div class="flex--item message-text" aria-label="notice-message"></div><div class="flex--item mr0 dismiss-btn" aria-label="notice-dismiss"></div></div></aside>'),i=s.find(".message-text"),r=s.find(".dismiss-btn"),c=$("<a>",{class:"message-close p8 s-btn d-flex flex__center fc-dark",title:__tr(["Close this message"], undefined, "en", [])});return c.append(Svg.ClearSm.With("pe-none")),r.append(c),r.click((function(e){$(e.target).is(".message-close")&&(s.remove(),a.addClass("d-none"))})),o.transient&&s.delay(o.transientTimeout).slideUp(void 0,(function(){this.remove()})),s.addClass("s-notice__"+t),i.html(e),a.removeClass("d-none").append(s),s},showModal:function(e,n){var o=$(e).addClass("js-stacks-managed-popup");if(0!==o.length){var a=$.extend({},{closeOthers:!0,shown:function(){}},n),s=$("body");a.closeOthers&&$(".message, .js-stacks-managed-popup").not(o).fadeOutAndRemove();o.on("popupClose",(function(e,t){var n;["esc","click outside","dismiss","submit"].indexOf(t.closeTrigger)>=0&&(a.dismissing&&a.dismissing(),(n=a.returnElements)&&o.one("transitionend",(function(){n.filter((function(e,t){return $.contains(document.body,t)})).first().focus()})))})),a.showing&&a.showing(),o.find(".js-modal-close").click((function(e){e.preventDefault(),t.closePopups(o,"dismiss")})),o.addClass("s-modal").appendTo(s);var i=o.find("a, button, [tabindex]").filter(":not([disabled]):not([tabindex=-1])"),r=o.find(".js-first-tabbable"),c=o.find(".js-last-tabbable");return 0===r.length&&(r=i.first()),0===c.length&&(c=i.last()),r.keydown((function(e){9===e.keyCode&&e.shiftKey&&(e.preventDefault(),c.focus())})),c.keydown((function(e){9!==e.keyCode||e.shiftKey||(e.preventDefault(),r.focus())})),setTimeout((function(){o.addClass("js-fades-with-aria-hidden").attr("aria-hidden","false"),o.one("transitionend",(function(){o.find(".js-modal-initial-focus:not([disabled])").first().focus(),a.shown&&a.shown()}))}),16),a.removing&&o.on("removing",a.removing),o}},loadModal:function(e,n){var o=$.Deferred();return n=n||{},$.ajax({type:"GET",url:e,dataType:"html",success:function(e){var a=t.showModal($(e).elementNodesOnly(),n);o.resolve(a)},error:function(e,t,a){var s=e.responseText&&e.responseText.length<200?e.responseText:n.defaultErrorMessage||__tr(["Unable to load popup - please try again"], undefined, "en", []);o.reject(s)}}),o.promise()},toggleStacksPopover:function(e,t){StackExchange.helpers.DelayedReaction((function(){var n=Stacks.application.getControllerForElementAndIdentifier(e.get(0),"s-popover");!0===t?n.show():!1===t?n.hide():n.toggle()}),50).trigger()},queueStacksPopover:function(e,n){var o=$.Deferred();o.then((function(){t.toggleStacksPopover(e,!0)}));var a=function(){var t,a,s,i;0===e.closest("body").length?o.reject():(t=$(window).scrollTop(),a=t+$(window).height()-StackExchange.scrollPadding.getPaddingTop(),s=e.offset().top,i=s+e.height(),s-(n||0)<=a&&i+(n||0)>=t&&(0===$(".s-popover.is-visible, .s-modal[aria-hidden=false]").length?o.resolve():o.reject()))};a(),"pending"===o.state()&&($(document).on("scroll.qSP",a),o.done((function(){$(document).off("scroll.qSP",a)})))},showToast:function(e,t){var n={dismissable:!0,transient:!0,transientTimeout:2e4,type:"info",actions:[]},o=$.extend({},n,t);/^(?:info|success|warning|danger)$/.test(""+o.type)||(StackExchange.debug.log(t.type+" is not a valid notice type"),o.type=n.type);var a=$('<div class="s-toast js-toast js-stacks-managed-popup" aria-hidden="true">  <aside class="s-notice">    <div class="d-flex gs16 gsx ai-center jc-space-between">      <div class="flex--item">        <div class="m0 js-toast-body" id="js-notice-toast-message" role="status" tabindex="0"></div>      </div>      <div class="flex--item mr0 js-notice-actions d-none">        <div class="d-flex"></div>      </div>    </div>  </aside></div>').css("top",Math.max(StackExchange.scrollPadding.getPaddingTop(),20));a.find(".s-notice").addClass("s-notice__"+o.type),a.find(".js-toast-body").html(e),o.dismissable&&o.actions.push({labelContents:Svg.ClearSm.With("m0"),ariaLabel:__tr(["Dismiss"], undefined, "en", []),jsClass:"js-dismiss",click:function(){a.fadeOutAndRemove()}}),o.actions.forEach((function(e){var t=$('<button class="p8 s-btn d-flex flex__center fc-dark" tabindex="0" role="button"></button>');t.append(e.labelContents).click((function(t){t.preventDefault(),e.click(t)})),e.ariaLabel&&t.attr("aria-label",e.ariaLabel),e.jsClass&&t.addClass(e.jsClass),a.find(".js-notice-actions").removeClass("d-none").children().append(t)})),$(".js-toast.js-stacks-managed-popup").fadeOutAndRemove();var s=o.$parent||$();return 0==s.length&&(s=(o.$source||$()).closest(".s-modal, body")),0==s.length&&(s=$("body")),a.appendTo(s),a.delay(16).queue((function(){$(this).addClass("js-fades-with-aria-hidden").attr("aria-hidden","false").dequeue()})),o.transient&&a.delay(o.transientTimeout).queue((function(){a.fadeOutAndRemove().dequeue()})),a},hideToasts:function(){$(".js-toast.js-stacks-managed-popup").fadeOutAndRemove()},removeMessages:function(e){e?$(".message").remove():$(".message").fadeOutAndRemove()},addSpinner:function(e,n){$(e).append(t.getSpinnerImg(n))},addStacksSpinner:function(e,t,n){var o=$('<div class="s-spinner" role="alert" aria-busy="true" />').addClass(n||"");t&&o.addClass("s-spinner__"+t),$("<div />").css({"font-size":"0px",color:"transparent",float:"left"}).text(__tr(["loading..."], undefined, "en", [])).appendTo(o),$(e).append(o)},getSpinnerImg:function(e){var t=$("<img />",{class:"ajax-loader",src:"/Content/Img/progress-dots.gif",title:__tr(["loading..."], undefined, "en", []),alt:__tr(["loading..."], undefined, "en", [])});return e&&t.css(e),t},removeSpinner:function(){$("img.ajax-loader, .s-spinner").remove()},closePopups:function(e,t){var n=$.Event("closePopups");n.selectorToClose=e,n.closeTrigger=t||"closePopups",$(document).trigger(n)},enableSubmitButton:function(t){e(t,!1)},disableSubmitButton:function(t){e(t,!0)},loadTicks:function(e){var t;0===(t=e?e.find(".edit-block"):$(".edit-block")).find("input[name=i1l]").length&&(t.data("loading-ticks")||(t.data("loading-ticks",!0),$.ajax({url:"/questions/ticks",cache:!1,success:function(e){t.append("<input type='hidden' name='i1l' value='"+e+"' />")},complete:function(){t.data("loading-ticks",!1)}})))},showFancyOverlay:function(e){e=e||{};var t=$("body:visible");if(0!==t.length){var n=$('<div id="overlay-header"></div>').prependTo(t),o=e.message||"";!1!==e.showClose&&(o+='<br><a class="close-overlay">'+__tr(["close this message"], undefined, "en", [])+"</a>"),n.html(o).animate({opacity:1,height:"show"},"slow",e.complete).find(".close-overlay").click((function(){n.animate({opacity:0,height:"hide"},"fast")}))}else setTimeout((function(){StackExchange.helpers.showFancyOverlay(e)}),10)},DelayedReaction:function(e,t,n){var o,a,s=(n=n||{}).always,i=function(){o=null,e.apply(null,a)};return{trigger:function(){if(a=arguments,s&&s.apply(null,a),o){if(!n.sliding)return;clearTimeout(o),o=setTimeout(i,t)}else o=setTimeout(i,t)},cancel:function(){o&&(clearTimeout(o),o=null)}}},fireAndForget:function(e){$.ajax({type:"POST",url:e,data:{fkey:StackExchange.options.user.fkey},async:!0})},updateQueryStringParameter:function(e,t,n){var o=new RegExp("([?&])"+t+"=.*?(&|$)","i"),a=-1!==e.indexOf("?")?"&":"?";return e.match(o)?e.replace(o,"$1"+t+"="+n+"$2"):e+a+t+"="+n},parseUrl:function(e){var t=document.createElement("a");return t.href=e,""===t.host&&(t.href=t.href),t},isEmailAddress:function(e){return!("string"!=typeof e||e.length<3)&&/^[A-Z0-9._%+'-]+@(?:[A-Z0-9-]+.)+[A-Z]{2,63}$/i.test(e)},getLikelyErrorMessage:function(e){if(!e||"string"!=typeof e.responseText||e.responseText.length>250)return"";var t=e.responseText;try{var n=JSON.parse(t);return n.ErrorMessage||n.Message||""}catch(e){return t}},getRejectedMockXhr:function(e){return $.Deferred().reject({responseText:e})},submitFormOnEnterPress:function(e){var t=e.find("textarea, div[contenteditable]");if(!t.is("[contenteditable]")||StackExchange.helpers.hasContentEditable(t)){var n=!1,o=!1,a=!1;t.keyup((function(s){if(n||o)o=!1;else if(13===s.which&&!s.shiftKey){if(t.prev("#tabcomplete > li:visible").length)return;if(e.hasClass("js-prevent-submit-form-on-enter-press"))return;if(!a)return;e.submit()}})).keypress((function(e){return a=!0,13!==e.which||e.shiftKey})),t.on("compositionstart",(function(e){n=!0})).on("compositionend",(function(e){n=!1,o=!0})).on("keydown",(function(e){229!==e.which&&(o=!1)}))}},isInNetwork:function(e){if("string"!=typeof e)throw new TypeError;try{var t=StackExchange.helpers.parseUrl(e.trim()).hostname;if(t===window.location.hostname)return!0;for(var n=["stackoverflow.com","stackexchange.com","serverfault.com","superuser.com","stackauth.com","stackapps.com","askubuntu.com","askdifferent.com","mathoverflow.net","askpatents.com"],o=0;o<n.length;o++){var a=n[o];if(t===a||t.endsWith("."+a))return!0}}catch(e){}return!1},removeParameterFromQueryString:function(e){if("undefined"!=typeof URLSearchParams){var t=new URLSearchParams(window.location.search);if(window.history&&window.history.replaceState&&t.has(e)){t.delete(e);var n=t.toString(),o=window.location.pathname;n.length>0&&(o+="?"+n),o+=window.location.hash;try{window.history.replaceState({},document.title,o)}catch(e){}}}},placeCaretAtEnd:function(e){if(e.focus(),void 0!==window.getSelection&&void 0!==document.createRange){var t=document.createRange();t.selectNodeContents(e),t.collapse(!1);var n=window.getSelection();n.removeAllRanges(),n.addRange(t)}},hasContentEditable:function(e){if(!e)return!1;var t=e instanceof HTMLElement?e:e instanceof $?e[0]:null;return t&&"true"===t.contentEditable},copyTextToClipboard:function(e){var t=$("<textarea>").css("height","0").appendTo("body");t.val(e).select(),document.execCommand("copy"),t.remove(),StackExchange.helpers.showToast("Text copied to clipboard.",{type:"success",transientTimeout:3e3})},encodeHexHtmlEntities:function(e){return e.replace(/[\u00A0-\u9999<>\&]/g,(function(e){return"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}))}};return t}(),StackExchange.scrollPadding=(i=0,r=0,c=0,l=!1,d=$(window),{setPaddingTop:function(e,t){var n,o,a,s,u,p,f,g,h;i=e+(c=t||0),r=e,l||(l=!0,function(){var e=jQuery.fn.animate;jQuery.fn.animate=r(e,(function(t){if("scrollTop"in t&&a(this)){var n={};$.extend(n,t),n.scrollTop=parseInt(n.scrollTop,10)-i,arguments[0]=n}return e.apply(this,arguments)}));var t=jQuery.fn.scrollTop;jQuery.fn.scrollTop=r(t,(function(){if(a(this)){if(0===arguments.length)return t.apply(this,arguments)+i;arguments[0]-=i}return t.apply(this,arguments)}));for(var n=document.body.__proto__;n&&!n.hasOwnProperty("scrollIntoView");)n=n.__proto__;if(n){var o=n.scrollIntoView;n.scrollIntoView=r(o,(function(e){var t=this;if("contents"===getComputedStyle(t).display&&(t=t.children[0]||t),!0===e||null==e||"smooth"!==e.behavior&&"end"!==e.block){var n=document.body.style.marginTop,a=parseInt(getComputedStyle(document.body).marginTop,10);document.body.style.marginTop=a-i+"px";var s=o.apply(t,arguments);return document.body.style.marginTop=n,s}o.apply(t,arguments)}))}function a(e){var t=e.filter((function(e,t){return t===window||t===document.body||t===document.body.parentElement}));return e.length>0&&e.length===t.length}var s=!1;function r(e,t){return function(){if(s)return e.apply(this,arguments);s=!0;try{return t.apply(this,arguments)}finally{s=!1}}}function c(){var e=$(":target");if(e.length||(location.hash.length>1&&/edge|msie|trident/i.test(navigator.userAgent)&&(e=$(document.getElementsByName(location.hash.substr(1))).first()),e.length)){var t=1;e.is(":empty")&&"inline"===e.css("display")&&(t+=parseInt(e.next().css("margin-top"),10));var n=e.offset().top;e.length&&Math.abs(d.scrollTop()-n-i)<t&&d.scrollTop(n)}}$("body").on("click","a",(function(){var e=$(this).attr("href");e&&/#/.test(e)&&(d.on("scroll",c),setTimeout((function(){d.off("scroll",c)}),500))})),d.on("hashchange",c),$((function(){setTimeout(c,10),setTimeout(c,100),setTimeout(c,1e3)}))}(),/^mac/i.test(navigator.platform)&&!/firefox/i.test(navigator.userAgent)&&(u=performance.now?performance.now.bind(performance):Date.now.bind(Date),p=null,f=null,g=!1,h=StackExchange.helpers.DelayedReaction((function(){p=null}),100,{sliding:!0}),d.on("keydown",(function(e){if(e.target===document.body){var t=e.which;t<32||t>34?p=null:(n=p=d.scrollTop(),o=0,s=0,g=!1,f=null,a=u(),h.trigger())}else p=null})),d.on("scroll",(function(e){if(null!==p)if(g)d.scrollTop(f);else{var t=u(),r=d.scrollTop(),c=t-a,l=r-n,m=l/c,v=l<0?-1:1;null===f&&(f=p+v*(d.height()-i-20));var b=(m-o)/c,x=b+(b-s);if(m*x<0){var k=-m/x,w=f-(r+k*(m+.5*x*k));Math.abs(w)<100&&(r+(m+.5*x*c)*c-f)*v>-20&&(d.scrollTop(f),g=!0)}h.trigger(),n=r,a=t,o=m,s=b}}))))},getPaddingTop:function(){return i},getPaddingTopMinimal:function(){return r},getWindowScrollTopMinimal:function(){return d.scrollTop()-c},ensureInitialized:function(){l||StackExchange.scrollPadding.setPaddingTop(0,0)}}),StackExchange.responsive=function(){var e=$("html").hasClass("html__responsive"),t=980,n=816;if(e){var o=matchMedia("(max-width: "+640+"px)"),a=matchMedia("(max-width: "+t+"px)"),s=matchMedia("(max-width: "+n+"px)");o.addListener(l),a.addListener(l),s.addListener(l)}function i(){if(!e)return"lg";var t="lg";return o.matches?t="sm":(e?$("html").hasClass("html__unpinned-leftnav")?s:a:null).matches&&(t="md"),t}var r=null,c=[];function l(){var e=r,t=i();t!==e&&(r=t,c.forEach((function(n){n(t,e)})))}function d(e){c.push(e)}var u=[Node.ELEMENT_NODE,Node.TEXT_NODE,Node.COMMENT_NODE];function p(e){for(var t=document.querySelectorAll("*[data-can-be][data-is-here-when~='"+e+"']"),n=0;n<t.length;n++){var o=t[n],a=o.dataset.canBe,s=document.getElementById(a);if(s)o.childNodes.length&&StackExchange.debug.log("can-be target for id "+a+" at size '"+e+"' is not empty"),Array.prototype.slice.call(s.childNodes).forEach((function(e){u.indexOf(e.nodeType)>=0&&o.appendChild(e)})),s.removeAttribute("id"),s.dataset.canBe=a,delete o.dataset.canBe,o.id=a;else StackExchange.debug.log("no element with id "+a+" found")}}return d(p),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",l):setTimeout(l,0),{addBreakpointListener:d,removeBreakpointListener:function(e){var t=c.indexOf(e);t>=0&&c.splice(t,1)},currentRange:function(){return r||i()},forceCheck:function(){var e=r;l(),e===r&&p(e)}}}(),jQuery.cookie=function(e,t,n){if(void 0===t){var o=null;if(document.cookie&&""!==document.cookie)for(var a=document.cookie.split(";"),s=0;s<a.length;s++){var i=jQuery.trim(a[s]);if(i.substring(0,e.length+1)===e+"="){o=decodeURIComponent(i.substring(e.length+1));break}}return o}n=n||{},null===t&&(t="",n.expires=-1);var r="";if(n.expires&&("number"==typeof n.expires||n.expires.toUTCString)){var c;if("number"==typeof n.expires){c=new Date;var l=24*n.expires*60*60*1e3;c.setTime(c.getTime()+l)}else c=n.expires;r="; expires="+c.toUTCString()}var d=n.path?"; path="+n.path:"",u=n.domain?"; domain="+n.domain:"",p=n.secure?"; secure":"";document.cookie=[e,"=",encodeURIComponent(t),r,d,u,p].join("")},jQuery.expr[":"].regex=function(e,t,n){var o=n[3].split(","),a=/^(data|css):/,s={method:o[0].match(a)?o[0].split(":")[0]:"attr",property:o.shift().replace(a,"")};return new RegExp(o.join("").replace(/^\s+|\s+$/g,""),"ig").test(jQuery(e)[s.method](s.property))},$.extend($.expr[":"],{containsExact:function(e,t,n){return $.trim(e.innerHTML.toLowerCase())===n[3].toLowerCase()},containsExactCase:function(e,t,n){return $.trim(e.innerHTML)===n[3]},containsRegex:function(e,t,n){var o=/^\/((?:\\\/|[^\/])+)\/([mig]{0,3})$/.exec(n[3]);return RegExp(o[1],o[2]).test($.trim(e.innerHTML))}}),function(e){e.fn.typeWatch=function(t){var n=e.extend({wait:750,callback:function(){},highlight:!0,captureLength:2},t);function o(t){if("TEXT"===t.type.toUpperCase()||"TEXTAREA"===t.nodeName.toUpperCase()){var o={timer:null,text:e(t).val().toUpperCase(),cb:n.callback,el:t,wait:n.wait};n.highlight&&e(t).focus((function(){this.select()}));var a=function(t){var a=o.wait,s=!1;13===t.keyCode&&"TEXT"===this.type.toUpperCase()&&(a=1,s=!0);clearTimeout(o.timer),o.timer=setTimeout((function(){!function(t,o){var a=e(t.el).val();(a.length>n.captureLength&&a.toUpperCase()!==t.text||o&&a.length>n.captureLength)&&(t.text=a.toUpperCase(),t.cb(a))}(o,s)}),a)};e(t).keydown(a).bind("paste",null,(function(e){e.which||a(this)})).bind("input",null,(function(e){e.which||a(this)}))}}return this.each((function(e){o(this)}))}}(jQuery),function(e){function t(t){var o;return t&&t.constructor===Array&&3===t.length?t:(o=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(t))?[parseInt(o[1]),parseInt(o[2]),parseInt(o[3])]:(o=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(t))?[2.55*parseFloat(o[1]),2.55*parseFloat(o[2]),2.55*parseFloat(o[3])]:(o=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(t))?[parseInt(o[1],16),parseInt(o[2],16),parseInt(o[3],16)]:(o=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(t))?[parseInt(o[1]+o[1],16),parseInt(o[2]+o[2],16),parseInt(o[3]+o[3],16)]:(o=/rgba\(0, 0, 0, 0\)/.exec(t))?n.transparent:n[e.trim(t).toLowerCase()]}e.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],(function(n,o){e.fx.step[o]=function(n){n.colorInit||(n.start=function(n,o){var a;do{if(""!==(a=e.css(n,o))&&"transparent"!==a||e.nodeName(n,"body"))break;o="backgroundColor"}while(n=n.parentNode);return t(a)}(n.elem,o),n.end=t(n.end),n.colorInit=!0),n.elem.style[o]="rgb("+[Math.max(Math.min(parseInt(n.pos*(n.end[0]-n.start[0])+n.start[0]),255),0),Math.max(Math.min(parseInt(n.pos*(n.end[1]-n.start[1])+n.start[1]),255),0),Math.max(Math.min(parseInt(n.pos*(n.end[2]-n.start[2])+n.start[2]),255),0)].join(",")+")"}}));var n={transparent:[255,255,255]}}(jQuery),StackExchange.gps=function(){function e(e,t,n,o){t=t||{};var a=null;StackExchange.options&&StackExchange.options.user&&(t.user_type=StackExchange.options.user.userType,a=StackExchange.options.user.ab);var s={evt:e,properties:t,now:(new Date).getTime()};a&&(s.ab=a),StackExchange._gps_track.push(s),o&&o()}return StackExchange._gps_track=[],window.location.href.indexOf("utm_")>=0&&StackExchange.ready((function(){if(StackExchange.options&&StackExchange.options.utm);else{var t=function(e){var t=new RegExp("[\\?&]utm_"+e+"=([^&#]*)").exec(window.location.href);if(t)return decodeURIComponent(t[1])||void 0},n={source:t("source"),medium:t("medium")||"unknown",medium_s:t("medium")||"unknown",campaign:t("campaign"),content:t("content"),term:t("term")};n.source&&n.campaign&&e("utm.view",n),StackExchange.using("gps",(function(){StackExchange.gps.sendPending()}))}})),{track:e,sendPending:function(e){e&&e()}}}()})()})();